package office.bo.hr.impl;

import java.util.Date;

import current.security.user.domain.User;

import office.bo.hr.IMatterSpecify;
import office.domainset.BizDomainProviderSetImpl;
import platform.common.bo.PersistenceBO;
import platform.common.dao.IDomainProviderSet;
import platform.common.exception.BusinessException;
/**
 * 其它事项指定交班人
 * @author ZhangYQ
 *
 */
public class MatterSpecify extends PersistenceBO implements IMatterSpecify {
	
	private static final long serialVersionUID = 1L;
	private String  title;       //标题  
	private String  content;     //內容
	private String  createMan;   //创建人
	private Date    createDate;   //创建日期
	private String  handleUser;   //处理人
	private String  handleState; //处理状态 //0：未处理 1：正在处理  2：处理完成
	private String  remark;      //备注
	private String  handleUserName;//处理人中文名
	/**
	 * 获取用户对象
	 * @param domainProviderSet
	 * @return
	 * @throws BusinessException
	 */
	public User getUser(IDomainProviderSet domainProviderSet,String userId) throws BusinessException{
		User user=null;
		try {
			BizDomainProviderSetImpl domainProviderSetImpl = (BizDomainProviderSetImpl) domainProviderSet;
			user=(User)domainProviderSetImpl.getDao().findByIdAndDomain(domainProviderSetImpl.getUserDP(), userId);
		} catch (Exception e) {
			throw this.handleBusinessBOException(e);
		}
		return user;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getCreateMan() {
		return createMan;
	}
	public void setCreateMan(String createMan) {
		this.createMan = createMan;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public String getHandleUser() {
		return handleUser;
	}
	public void setHandleUser(String handleUser) {
		this.handleUser = handleUser;
	}
	public String getHandleState() {
		return handleState;
	}
	public void setHandleState(String handleState) {
		this.handleState = handleState;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getHandleUserName() {
		return handleUserName;
	}
	public void setHandleUserName(String handleUserName) {
		this.handleUserName = handleUserName;
	}
	
}
